from rest_framework.viewsets import ModelViewSet
from goods.models import SPUSpecification
from meiduo_admin.my_paginate import MyPageNumberPagination
from meiduo_admin.serializers import spu_specs_serializers

class SPUSpecView(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = spu_specs_serializers.SPUSpecSerializer
    queryset = SPUSpecification.objects.all()